package com.letfox.user.service.relation.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.user.dao.relation.AccountRoleDao;
import com.letfox.user.model.relation.UAccountRole;
import com.letfox.user.service.relation.AccountRoleService;

@Service
public class AccountRoleServiceImpl implements AccountRoleService{

	@Autowired
	private AccountRoleDao accountRoleDao;

	@Override
	public int save(UAccountRole entity) {
		return accountRoleDao.insert(entity);
	}

	@Override
	public int update(UAccountRole entity) {
		return accountRoleDao.update(entity);
	}

	@Override
	public int deleteById(Long id) {
		return accountRoleDao.deleteById(id);
	}

	@Override
	public int deleteByIds(String ids) {
		return accountRoleDao.deleteByIds(ids);
	}

	@Override
	public UAccountRole getById(Long id) {
		return accountRoleDao.selectById(id);
	}

	@Override
	public List<UAccountRole> getList(UAccountRole entity) {
		return accountRoleDao.selectList(entity);
	}

	@Override
	public List<UAccountRole> getList(Map<String, Object> params) {
		return accountRoleDao.selectList(params);
	}
	
	

}
